FROM php:8.2-fpm
RUN apt-get update \
     && apt-get install -y libfreetype-dev \
                           		libjpeg62-turbo-dev \
                           		libpng-dev libmcrypt-dev \
    openssl libssl-dev libcurl4-openssl-dev libc-ares-dev libzip-dev \
    && docker-php-ext-configure gd --with-freetype --with-jpeg \
    && docker-php-ext-install -j $(nproc) gd zip pdo_mysql mysqli\
    && pecl install redis-5.3.7 mcrypt \
    && pecl install -D 'enable-sockets="no" enable-openssl="yes" enable-http2="yes" enable-mysqlnd="yes" enable-swoole-json="no" enable-swoole-curl="yes" enable-cares="yes"' swoole-4.8.13 \
    && docker-php-ext-enable redis mcrypt swoole
MAINTAINER chen
